-- GENERATED SPELL FOR [Father Kamaros] --


function spell0_32800(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(25054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32800', 2500, 1)
end

function spell1_32800(pUnit, Event) --@Power Word: Fortitude,n/a--
pUnit:FullCastSpellOnTarget(58921,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32800', 624, 1)
end

function spell2_32800(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(32595,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32800', 30327, 1)
end

function spell3_32800(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(17146,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32800', 18000, 1)
end

function Sorts_32800(pUnit, Event)
local choix_sorts_32800 = math.random(0, 3)
if choix_sorts_32800 == 0 then
pUnit:RegisterEvent('spell0_32800', 1, 1)
end
if choix_sorts_32800 == 1 then
pUnit:RegisterEvent('spell1_32800', 1, 1)
end
if choix_sorts_32800 == 2 then
pUnit:RegisterEvent('spell2_32800', 1, 1)
end
if choix_sorts_32800 == 3 then
pUnit:RegisterEvent('spell3_32800', 1, 1)
end
end

function mob32800_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32800', math.random(1500, 3000), 1)
end

function mob32800_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32800_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32800_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32800, 1, 'mob32800_Action')
RegisterUnitEvent(32800, 2, 'mob32800_Leave')
RegisterUnitEvent(32800, 3, 'mob32800_Kill')
RegisterUnitEvent(32800, 4, 'mob32800_Die')
